<template>
  <div>
    <img src="../../../../server/public/jianshen12.png" class="imgs" />
    <div class="qi">
      <ul>
        <li>
          <span class="icon iconfont">&#xe610;</span>
          <p>器材</p>
        </li>
        <li>
          <span class="icon iconfont">&#xe763;</span>
          <p>鞋服</p>
        </li>

        <li>
          <span class="icon iconfont">&#xe87e;</span>
          <p>推荐达人</p>
        </li>
      </ul>
    </div>
    <div class="wap">
      <div class="hot">
        <p>爆款推荐</p>
      </div>
      <div class="list" v-for="(item,index) in shop " :key='index'>
        <ul>
          <li>
            <div class="imgX">
              <img :src="item.img" alt />
            </div>
            <div class="names"> <p class="name">{{item.title}}</p></div>
           
            <p class="price"> 
              <span>￥</span>{{item.price
              }}
            </p>
          </li>
         <li class="li2">
            <div class="imgX">
              <img :src="item.img" alt />
            </div>
            <div class="names"> <p class="name">{{item.title}}</p></div>
           
            <p class="price"> 
              <span>￥</span>{{item.price
              }}
            </p>
          </li>
           <li>
            <div class="imgX">
              <img :src="item.img" alt />
            </div>
            <div class="names"> <p class="name">{{item.title}}</p></div>
           
            <p class="price"> 
              <span>￥</span>{{item.price
              }}
            </p>
          </li>
        </ul>
        
        
      </div>
      <div class="kong"></div>
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return{
      shop:[]
    }
  },
  mounted() {
    this.api.GetShop()
    .then(data=>{
      this.shop=data.data.Shop
    })
  },
};
</script>

<style lang="less" scoped>
.imgs {
  width: 100%;
  height: 4.2rem;
  margin: 0;
  padding: 0;
}
.qi {
  width: 80%;
  margin: 0 auto;
  height: 1.8rem;
  ul {
    
    li {
      float: left;
      width: 1rem;
      margin-right: 1.3rem;
      margin-left: 0.1rem;
      height: 1rem;
      border-radius: 50%;
      background: rgb(254, 217, 6);
      span {
        font-size: 25px;
        position: relative;
        top: 0.2rem;
        left: 0.25rem;
      }
      p {
        text-align: center;
        color: #333;
        font-size: 12px;
        margin-top: 0.6rem;
        margin-left: 0.01rem;
      }
    }
    li:last-child {
      margin-right: 0;
      margin-left: 0;
    }
  }
}
.wap {
  width: 95%;
  margin: 0 auto;
  height: 3rem;
  // background: teal;
  .hot {
    height: 1rem;
    width: 100%;
    margin: 0 auto;
    p {
      padding: 0.2rem 0;
      font-size: 20px;
    }
  }
  .list {
    width: 100%;
    // background: pink;
    height: 4rem;
    ul {
      .li2{
        margin-left: 0.1rem;
      }
      li:nth-child(3){
        margin-right: 0rem;
        float: left;
    }
      li {
      
        float: left;
        width: 30%;
        height: 4rem;
        // background: red;
        margin-right: 0.2rem;
        .imgX {
          width: 100%;
          height: 2.3rem;
          // background: yellowgreen;
          img {
            width: 100%;
            height: 100%;
          }
        }
        .names{
          width: 90%;
          .name {
          margin-top: 0.2rem;
          font-size: 14px;

        }
        }
        
        .price{
          margin-top: 0.1rem;
           font-size: 12px;
           span{
             
             font-size: 12px;
           }
        }
      }
    }
  }
  .kong {
    height: 2rem;
  }
}
</style>